package com.ruoyi.types.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.types.mapper.BathroomTypesMapper;
import com.ruoyi.types.domain.BathroomTypes;
import com.ruoyi.types.service.IBathroomTypesService;

/**
 * 房间卫所管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-14
 */
@Service
public class BathroomTypesServiceImpl implements IBathroomTypesService 
{
    @Autowired
    private BathroomTypesMapper bathroomTypesMapper;

    /**
     * 查询房间卫所管理
     * 
     * @param bathroompeId 房间卫所管理主键
     * @return 房间卫所管理
     */
    @Override
    public BathroomTypes selectBathroomTypesByBathroompeId(Long bathroompeId)
    {
        return bathroomTypesMapper.selectBathroomTypesByBathroompeId(bathroompeId);
    }

    /**
     * 查询房间卫所管理列表
     * 
     * @param bathroomTypes 房间卫所管理
     * @return 房间卫所管理
     */
    @Override
    public List<BathroomTypes> selectBathroomTypesList(BathroomTypes bathroomTypes)
    {
        return bathroomTypesMapper.selectBathroomTypesList(bathroomTypes);
    }

    /**
     * 新增房间卫所管理
     * 
     * @param bathroomTypes 房间卫所管理
     * @return 结果
     */
    @Override
    public int insertBathroomTypes(BathroomTypes bathroomTypes)
    {
        return bathroomTypesMapper.insertBathroomTypes(bathroomTypes);
    }

    /**
     * 修改房间卫所管理
     * 
     * @param bathroomTypes 房间卫所管理
     * @return 结果
     */
    @Override
    public int updateBathroomTypes(BathroomTypes bathroomTypes)
    {
        return bathroomTypesMapper.updateBathroomTypes(bathroomTypes);
    }

    /**
     * 批量删除房间卫所管理
     * 
     * @param bathroompeIds 需要删除的房间卫所管理主键
     * @return 结果
     */
    @Override
    public int deleteBathroomTypesByBathroompeIds(Long[] bathroompeIds)
    {
        return bathroomTypesMapper.deleteBathroomTypesByBathroompeIds(bathroompeIds);
    }

    /**
     * 删除房间卫所管理信息
     * 
     * @param bathroompeId 房间卫所管理主键
     * @return 结果
     */
    @Override
    public int deleteBathroomTypesByBathroompeId(Long bathroompeId)
    {
        return bathroomTypesMapper.deleteBathroomTypesByBathroompeId(bathroompeId);
    }
}
